package com.quanyue.music.user.service;

import com.quanyue.music.domain.entity.User;
import com.quanyue.music.user.type.UserDetail;
import com.shzisg.mybatis.mapper.page.Page;
import com.shzisg.mybatis.mapper.page.PageRequest;

public interface UserService {

    User findByName(String name);

    User findByOpenId(String openId);

    User add(User user);

    User findById(String id);

    void update(User user);

    void updateEmail(String email, String userId);

    Page<UserDetail> findUsers(PageRequest request);

    String excelUser();

    String excelUserEveryday(String date);

    Boolean getAddressByIP(String ip);

}
